import { SET_SYSTEM_PROVIDER } from '../types'
import { Module } from 'vuex'

const state = {
  provider: '',
}

const mutations = {
  [SET_SYSTEM_PROVIDER](state: Store.ConfigTypes, payload: String) {
    state.provider = payload
  },
}

const actions = {}

const store: Module<Store.ConfigTypes, Store.RootStateType> = {
  namespaced: true,
  state,
  mutations,
  actions,
}

export default store
